package com.itheima.home_work.users;

public abstract class User {
    private String name;
    private String password;
    protected int role; // 用户类型  0：老师  1：学生

    public User() {
    }

    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public int getRole() {
        return role;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public abstract void loginSuccess();

}
